package com.jdk8.parameter_01;

public class AppleColorStrategyImpl implements AppleStrategy {
    @Override
    public Boolean Strategy(String color, Apple apple) {
        if (color == null || color.isEmpty()) {
            return false;
        }
        return color.equals(apple.getColor());
    }
}
